{% extends 'base.html' %} {% load static %} {% block title %}奖助学金评定系统{% endblock %} {% block css %}
<link rel="stylesheet" href="{% static 'style.css' %}"> {% endblock %} {% block content %}

<body>
    <section id="container">
        <!-- **********************************************************************************************************************************************************
        TOP BAR CONTENT & NOTIFICATIONS
        *********************************************************************************************************************************************************** -->
        <!--header start-->
        <header class="header black-bg">
            <div class="sidebar-toggle-box">
                <div class="fa fa-bars tooltips" data-placement="right" data-original-title="Toggle Navigation"></div>
            </div>
            <!--logo start-->
            <a href="index.html" class="logo"><b>奖助学金评定<span>系统</span></b></a>
            <!--logo end-->
            <div class="nav notify-row" id="top_menu">
                <!--  notification start -->
                <ul class="nav top-menu">
                    <!-- inbox dropdown start-->
                    <li id="header_inbox_bar" class="dropdown">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="index.html#">
                            <i class="fa fa-envelope-o"></i>
                            {% if no_read_message_count != 0 %} <span class="badge bg-theme">{{ no_read_message_count }}</span>{% endif %}
                        </a>
                        <ul class="dropdown-menu extended inbox">
                            <div class="notify-arrow notify-arrow-green"></div>
                            <li>
                                <p class="green">你有{{ no_read_message_count }} 条信息未读</p>
                            </li>
                            {% for no_read_message in no_read_message_list %}
                            <li>
                                <a href="{% url 'dataManagement:messageShow' no_read_message.id %}">
                                    <span class="photo"><i class="fa fa-envelope-o"></i></span>
                                    <span class="subject">
                    <span class="from">来自{{ no_read_message.from_user }}</span>
                                    <span class="time">{{ no_read_message.send_time }}</span>
                                    </span>
                                    <span class="message">
                      {{ no_read_message.text | truncatechars:17 }}...
                    </span>
                                </a>
                            </li>
                            {% empty %} 暂无消息 {% endfor %}
                        </ul>
                    </li>
                    <!-- inbox dropdown end -->
                </ul>
                <!--  notification end -->
            </div>
            <div class="top-menu">
                <ul class="nav pull-right top-menu">
                    <li><a class="logout" href="{% url 'MyUser:logout' %}">退出</a></li>
                </ul>
            </div>
        </header>
        <!--header end-->
        <!-- **********************************************************************************************************************************************************
        MAIN SIDEBAR MENU
        *********************************************************************************************************************************************************** -->
        <!--sidebar start-->
        <aside>
            <div id="sidebar" class="nav-collapse ">
                <!-- sidebar menu start-->
                <ul class="sidebar-menu" id="nav-accordion">
                    <!--          <p class="centered"><a href="profile.html"><img src="img/ui-sam.jpg" class="img-circle" width="80"></a></p>-->
                    <h5 class="centered">{% if request.user.name %}你好!&nbsp; {{ request.user.name }}{% else %} 请完善个人信息! {% endif %}</h5>
                    <li class="mt">
                        <a class="active" href="{% url 'dataManagement:index' %}">
                            <i class="fa fa-dashboard"></i>
                            <span>首页</span>
                        </a>
                    </li>
                    <li class="sub-menu">
                        <a href="javascript:;">
                            <i class="fa fa-desktop"></i>
                            <span>设置</span>
                        </a>
                        <ul class="sub">
                            <li><a href="{% url 'dataManagement:myinfo' %}">我的信息</a></li>
                            <li><a href="{% url 'dataManagement:setPassword' %}">修改密码</a></li>
                            <!--              <li><a href="requestLog.html">Panels</a></li>-->
                            <!--              <li><a href="font_awesome.html">Font Awesome</a></li>-->
                        </ul>
                    </li>
                    <li class="sub-menu">
                        <a href="javascript:;">
                            <i class="fa fa-cogs"></i>
                            <span>评审信息</span>
                        </a>
                        {% if request.user.identity == "学生" %}
                        <ul class="sub">
                            <li><a href="{% url 'dataManagement:requestLog' %}">申请记录</a></li>
                        </ul>
                        {% elif request.user.identity == "老师" %}
                        <ul class="sub">
                            <li><a href="{% url 'dataManagement:meetingList' %}">我的学生</a></li>
                            <!--                <li><a href="{% url 'dataManagement:juryGradeMeetingList' %}">我是评委</a></li>-->
                        </ul>
                        {% elif request.user.identity == "评委" %}
                        <ul class="sub">
                            <li><a href="{% url 'dataManagement:juryGradeMeetingList' %}">我是评委</a></li>
                        </ul>
                        {% endif %}
                    </li>
                    <li>
                        <a href="{% url 'dataManagement:messageIndex' %}?num=1&&choice=1">
                            <i class="fa fa-envelope"></i>
                            <span>消息</span>
                            <span class="label label-theme pull-right mail-info">{{ no_read_message_count }}</span>
                        </a>
                    </li>
                </ul>
                <!-- sidebar menu end-->
            </div>
        </aside>
        <!--sidebar end-->
        <!-- **********************************************************************************************************************************************************
        MAIN CONTENT
        *********************************************************************************************************************************************************** -->
        <!--main content start-->
        <section id="main-content">
            <section class="wrapper">
                <div class="row">
                    <div class="col-lg-9 main-chart">
                        <!--CUSTOM CHART START -->
                        <!--custom chart end-->
                        <!-- /row -->
                        <div class="row">
                            <div class=".col-xs-12 col-md-10 col-md-offset-3" style="padding: 0px">
                                <div class="panel panel-default">
                                    <!--                  <div class="panel-heading">公告通知 <a href="{% url 'dataManagement:noticListShow' %}?message_type=1"><span style="float: right">查看更多<span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span></span></a> </div>-->
                                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" style="margin-bottom: 10px;">
                                        <ul class="nav nav-tabs nav-justified">
                                            <li {% if status == '公告通知' %}class="active" {% endif %}><a href="{% url 'dataManagement:noticListShow' %}?message_type=1">公告通知 <span class="sr-only">(current)</span></a></li>
                                            <li {% if status == "评审通知" %}class="active" {% endif %}><a href="{% url 'dataManagement:noticListShow' %}?message_type=2">评审通知</a></li>
                                            <li {% if status == "结果通知" %}class="active" {% endif %}><a href="{% url 'dataManagement:noticListShow' %}?message_type=3">结果通知</结果通知></a></li>
                                        </ul>
                                    </div>
                                    <div class="panel-body">
                                        {% for notice in notice_list %}
                                        <a href="{% url 'dataManagement:noticShow'  notice.id %}"><span style="margin-left: 2em;">{{ notice.title }} <span style="float: right;">{{ notice.add_time }}</span></span></a>
                                        <br> {% empty %} 暂无内容 {% endfor %}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </section>
    </section>
    {% endblock %}
    <!-- js placed at the end of the document so the pages load faster -->
    {% block scriptlink %}
    <script src="{% static 'lib/jquery/jquery.min.js' %}"></script>

    <script src="{% static 'lib/bootstrap/js/bootstrap.min.js' %}"></script>
    <script class="include" type="text/javascript" src="{% static 'lib/jquery.dcjqaccordion.2.7.js' %}"></script>
    <script src="{% static 'lib/jquery.scrollTo.min.js' %}"></script>
    <script src="{% static 'lib/jquery.nicescroll.js' %}" type="text/javascript"></script>
    <script src="{% static 'lib/jquery.sparkline.js' %}"></script>
    <!--common script for all pages-->
    <script src="{% static 'lib/common-scripts.js' %}"></script>
    <script type="text/javascript" src="{% static 'lib/gritter/js/jquery.gritter.js' %}"></script>
    <script type="text/javascript" src="{% static 'lib/gritter-conf.js' %}"></script>
    <!--script for this page-->
    <script src="{% static 'lib/sparkline-chart.js' %}"></script>
    <script src="{% static 'lib/zabuto_calendar.js' %}"></script>
    {% endblock %} {% block script %}
    <script type="text/javascript">
        // $(document).ready(function() {
        //   var unique_id = $.gritter.add({
        //     // (string | mandatory) the heading of the notification
        //     title: 'Welcome to Dashio!',
        //     // (string | mandatory) the text inside the notification
        //     text: 'Hover me to enable the Close Button. You can hide the left sidebar clicking on the button next to the logo.',
        //     // (string | optional) the image to display on the left
        //     image: 'img/ui-sam.jpg',
        //     // (bool | optional) if you want it to fade out on its own or just sit there
        //     sticky: false,
        //     // (int | optional) the time you want it to be alive for before fading out
        //     time: 8000,
        //     // (string | optional) the class name you want to apply to that specific message
        //     class_name: 'my-sticky-class'
        //   });
        //
        //   return false;
        // });
    </script>
    <script type="application/javascript">
    </script>
</body>
{% endblock %}